# the minimum version of CMake.
cmake_minimum_required(VERSION 3.16)
project(XComponent)

set(CMAKE_CXX_STANDARD 17)
set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})
add_definitions(-DOHOS_PLATFORM)

include_directories(
    ${NATIVERENDER_ROOT_PATH}
    ${NATIVERENDER_ROOT_PATH}/include
    common
    manager
    render
)

add_library(nativerender SHARED
    render/demo_egl_core.cpp
    render/plugin_render.cpp
    manager/plugin_manager.cpp
    napi_init.cpp
)

#target_link_libraries(nativerender PUBLIC z)
target_link_libraries(nativerender PUBLIC hilog_ndk.z)
target_link_libraries(nativerender PUBLIC ace_ndk.z)
target_link_libraries(nativerender PUBLIC ace_napi.z)
#target_link_libraries(nativerender PUBLIC uv)
target_link_libraries(nativerender PUBLIC EGL)
target_link_libraries(nativerender PUBLIC GLESv3)
